package com.novellotus.iov.carvice.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Created by Rich on 2017/8/23.
 */

public class CityBean implements IPickerViewData {

    /**
     * value : 320000
     * label : 江苏省
     * children : [{"value":320100,"label":"南京市","children":null},{"value":320200,"label":"无锡市","children":null},{"value":320300,"label":"徐州市","children":null},{"value":320400,"label":"常州市","children":null},{"value":320500,"label":"苏州市","children":null},{"value":320600,"label":"南通市","children":null},{"value":320700,"label":"连云港市","children":null},{"value":320800,"label":"淮安市","children":null},{"value":320900,"label":"盐城市","children":null},{"value":321000,"label":"扬州市","children":null},{"value":321100,"label":"镇江市","children":null},{"value":321200,"label":"泰州市","children":null},{"value":321300,"label":"宿迁市","children":null}]
     */

    private int value;
    private String label;
    private List<ChildrenBean> children;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<ChildrenBean> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBean> children) {
        this.children = children;
    }

    @Override
    public String getPickerViewText() {
        return label;
    }

    public static class ChildrenBean {
        /**
         * value : 320100
         * label : 南京市
         * children : null
         */

        private int value;
        private String label;
        private Object children;

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public Object getChildren() {
            return children;
        }

        public void setChildren(Object children) {
            this.children = children;
        }
    }
}
